package com.canyou.util;

/**
 * 文件操作工具类
 * 
 * @created cgz 2012-12-23
 */
public class FileUtil {
	/**
	 * 获取文件后缀名
	 * 
	 * @author cgz 2012-12-23
	 * @param fileName
	 * @return
	 */
	public static String getExt(String fileName) {
		int pos = fileName.lastIndexOf(".");
		if (pos == -1)
			return "";
		return fileName.substring(pos, fileName.length());
	}
}
